package com.swordliu.facebook.pojo.entity;

import java.util.Date;

public class Permission {
    private Long id;

    private String key;

    private String name;

    private Long parentId;

    private String operation;

    private Integer type;

    private String url;

    private Integer order;

    private String explain;

    private Long sourceId;

    private Date createTime;

    public Permission(Long id, String key, String name, Long parentId, String operation, Integer type, String url, Integer order, String explain, Long sourceId, Date createTime) {
        this.id = id;
        this.key = key;
        this.name = name;
        this.parentId = parentId;
        this.operation = operation;
        this.type = type;
        this.url = url;
        this.order = order;
        this.explain = explain;
        this.sourceId = sourceId;
        this.createTime = createTime;
    }

    public Permission() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key == null ? null : key.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation == null ? null : operation.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain == null ? null : explain.trim();
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}